package com.iocup.keybastion.authorize.decision;

import java.util.Optional;

/**
 *  权限决断器查找
 * @author xyjxust
 * @create 2022/3/2
 **/
public interface AuthDecisionFinder {

    /**
     * 通过决断器名字查询
     * @param name
     * @return
     */
    Optional<AuthDecision> find(String name);

    /**
     * 添加决断器
     * @param decision
     * @return
     */
    AuthDecisionFinder addDecision(AuthDecision decision);
}
